const userRouter = [
  {
    path: '/user',
    children: [
      {
        path: 'list',
        component: () => import('./UserList.vue'),
      },
      {
        path: 'edit',
        component: () => import('./EditUser.vue'),
      },
      {
        path: 'detail/:id',
        component: () => import('./UserDetail.vue'),
        props: true,
      },
      {
        path: '',
        redirect: '/user/list',
      },
    ],
  },
];

export default userRouter;
